import fetch from 'utils/fetch';

export function page(query) {
return fetch({
url: '/api/codePayment/selectAll',
method: 'get',
params: query
});
}

export function changepsw(obj) {
return fetch({
url: '/api/user/changePassword',
method: 'post',
data: obj
});
}

export function getNowUserName() {
return fetch({
url: '/api/user/getUserName',
method: 'get'
});
}

export function logout(query) {
return fetch({
url: '/api/auth/logout',
method: 'get',
params: query
});
}

export function addObj(obj) {
return fetch({
url: '/api/codePayment/add',
method: 'post',
data: obj
});
}

export function getObj(id) {
return fetch({
url: '/api/codePayment/selectone/' + id,
method: 'get'
})
}


export function putObj(id, obj) {
return fetch({
url: '/api/codePayment/update/' + id,
method: 'put',
data: obj
})
}
